import request from '@/utils/request'

export function getArticleList(data) {
  return request({
    header: {
      'Content-Type': 'application/json'
    },
    url: '/article/list',
    method: 'post',
    data
  })
}

export function addArticle(data) {
  return request({
    header: {
      'Content-Type': 'application/json'
    },
    url: '/article/add',
    method: 'post',
    data
  })
}

export function updateArticle(data) {
  return request({
    header: {
      'Content-Type': 'application/json'
    },
    url: '/article/update',
    method: 'post',
    data
  })
}
